home *** CD-ROM | disk | FTP | other *** search
/ Unreal Tournament Game Programming for Teens / UnrealTournamentGameProgrammingForTeens.iso / Chapter Files / Chapter06 / CorrectedMultiply.txt < prev    next >
Encoding:
Text File  |  2006-10-15  |  457 b   |  16 lines

  1.     public function float Multiply(float NumA, float Numb){
  2.     // #2 Declare a variable that is not 
  3.        // visible to other functions
  4.        local float Result;
  5.        Result = 1; 
  6.        return NumA * NumB;
  7.     }
  8.  
  9.     public function float DivideAbyB(float NumA, float Numb){
  10.        // #2 Declare a variable that is not 
  11.        // visible to other functions
  12.        local float Result;
  13.        Result = 0; 
  14.        //Code left out 
  15.     } 
  16.